home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 008a / fglqbx10.zip / 10-01.BAS < prev    next >
BASIC Source File  |  1991-06-07  |  563b  |  31 lines

  1. REM $INCLUDE: 'fastgraf.bi'
  2.  
  3. DEFINT A-Z
  4.  
  5. REM initialize the video environment
  6.  
  7. NewMode = FGbestmode(320,200,1)
  8. IF NewMode < 0 OR NewMode = 12 THEN
  9.    PRINT "This program requires a 320 x 200 color graphics mode."
  10.    STOP
  11. END IF
  12. OldMode = FGgetmode
  13. FGsetmode NewMode
  14.  
  15. REM move the object across the screen
  16.  
  17. FOR X = -20 TO 315 STEP 5
  18.    FGsetcolor 10
  19.    FGclprect X, X+19, 95, 104
  20.    FGwaitfor 1
  21.    FGsetcolor 0
  22.    FGclprect X, X+19, 95, 104
  23. NEXT
  24.  
  25. REM restore the original video mode and return to DOS
  26.  
  27. FGsetmode OldMode
  28. FGreset
  29.  
  30. END
  31.